package com.ctgu.fcftsystem.dao;

import com.ctgu.fcftsystem.pojo.Revenue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface RevenueDao {


    /**
     * 根据时间对收入记录进行查询
     * @param revenueDate
     * @return
     */
    List<Revenue> searchRevenueByDate(@Param("revenueDate") Date revenueDate);

    /**
     * 根据类型对收入记录进行查询
     * @param revenueType
     * @return
     */
    List<Revenue> searchRevenueByType(@Param("rt") Integer revenueType);
}
